home *** CD-ROM | disk | FTP | other *** search
/ The Original Shareware 1.1 / The Original Shareware (WeMake CDs)(Volume 1.1)(CDs, Inc)(1993).iso / 36 / dvevnt01.zip / DVEVENT.TXT < prev    next >
Text File  |  1991-09-13  |  11KB  |  270 lines

  1.  
  2.  
  3.          Handling multi-node PCBoard events running under DESQView
  4.  
  5.                          A help/tip document by
  6.  
  7.                 Harv Welch (SysOp: City Bytes PCBoard BBS)
  8.                            Victoria BC  Canada
  9.                             (604)595-6234 HST
  10.                     RelayNet(tm) System ID ->CBYTES 
  11.  
  12.                          (Written 21 April 1991)
  13.                          (Revised 13 Sept 1991)
  14.  
  15. Although there are several document files available that explains how to
  16. set up and run a PCBoard system under DESQView, one of the major items that
  17. are not explained very well is how to get your system to run its events
  18. under this setup.
  19.  
  20. I will not be going into the actual DESQView setup, but rather how I have my
  21. system setup to handle the events.  I have helped several other SysOps
  22. with this mysterious delema, and thought that if I offered my suggestions
  23. in this format, then it may help others who have the same problems.
  24.  
  25. I must add here that when I first thought of attempting to run multiple
  26. nodes under DESQView on my 386 based machine, the best document that I
  27. found that really helped was one that was written by Scott Howard.  I found
  28. it on CDC's Salt Air support BBS as the file named: 
  29.             4DV&PCB.ZIP   (This is available on my system as well)
  30. For your initial setup, I would suggest that you get that file.  It was well
  31. written, and easy to follow.  It helped me get my system setup within about
  32. 1 hour.  Many thanks to Scott for offering this document to us DV/PCBoard
  33. SysOps.
  34.  
  35. Now, onto the event handling:
  36.  
  37.  
  38. When I first began to run my multiple node system under DESQView, I did so
  39. one Sunday afternoon when it was cold and raining outside.  What a good time
  40. to stay indoors and "Play" with the system, right?  I played around with the
  41. idea of spending the money to purchase a 2nd machine, getting a LAN, thinking
  42. of the cost involved, etc., etc.  This played around in my mind for several
  43. days.  I must admit that I was hesitant to try the DESQView approach, but in
  44. the end, I was glad I did.  Now I can spend the extra money on that large
  45. HardDrive that I have been eyeing. <grin>
  46.  
  47. During that Sunday afternoon, I read through Scott's document several times
  48. to get it straight in my mind as to what is expected.  I installed QEMM and
  49. DV, and then plunged right into it.
  50.  
  51. I altered my EVENT.SYS files for each node, my BOARD.BAT for each, and once
  52. it all appeared to be working fine, that is the way that I left it for 
  53. several days, until one evening when I decided to stay up late and watch the
  54. weekly WWF grunt matches on TV.  Like a lot of SysOps, I have a TV in my
  55. computer room.  
  56.  
  57. Well, what I thought was a good and final setup really took me by surprise
  58. when I noticed how S L O W my event, mailrun, etc took running under a
  59. window in DV.  What normally took about 30mins to run, now took about 1.5hrs
  60. running under a DV window due to time slicing, sharing, etc.
  61.  
  62. Hmmmmm.....  Now, how the heck am I going to fix that up?  That was obviously
  63. TOO slow.  It was pitiful to sit in front of the machine and watch it.  I 
  64. think that it would have actually run faster on a 4mhz XT.  NO KIDDING!!
  65.  
  66. I thought that what would work best would be to have all 4 nodes go down and
  67. then run the event under a clean system, without DV up.  But, how was I going
  68. to accomplish this?  
  69.  
  70. After trying a few different ways, I finally (by accident) came across a way
  71. in which it works very well.
  72.  
  73. Firstly, Node 1 is where the main event tasks are executed from.
  74.  
  75. In order for this to take place, I have Nodes 2, 3 & 4 go down 1 minute apart
  76. from each other at roughly 01:15 in the morning.  Node 2 goes down at 01:15,
  77. Node 3 at 01:16 and Node 4 at 01:17.
  78.  
  79. Now, if you were at the DOS prompt inside of a DV window and entered EXIT,
  80. that would immediately take down that window.  So, in my EVENT.SYS files for
  81. nodes 2,3 and 4, the very last line is simply EXIT.  This very nicely takes
  82. down the windows for each of Nodes 2,3 and 4 resulting in a clean take down
  83. of those nodes.  
  84.  
  85. An example of those batch files are as follows:
  86.  
  87.                               @echo off
  88.                               EXIT
  89.  
  90. That's it!  Simple isn't it.  Like stated previously, this takes down both
  91. the PCBoard nodes cleanly, and also the associated DV windows.  Now, the
  92. only window that is left up is that of Node 1.  This one is a tad more
  93. complicated, but yet, still simple.
  94.  
  95. At 01:20, Node 1 begins its event.  When this happens, it runs the EVENT.SYS
  96. file for Node 1.  It writes a flag file to C:\ and then runs a small neat
  97. little util called REBOOT.COM.  Just as the name inplies, REBOOT.COM will 
  98. then REBOOT the machine. 
  99.  
  100. An example of the EVENT.SYS file for Node one is as follows:
  101.  
  102.                              @echo off
  103.                              cls
  104.                              cd c:\
  105.                              echo Time for event > c:\event.flg
  106.                              reboot
  107.  
  108. Once again, just those 4 lines starts things off.  Simple eh?
  109.  
  110. Now, remember that flag file I mentioned above?  EVENT.SYS for Node 1 has
  111. written a file called EVENT.FLG to the C:\ drive.  When the machine reboots,
  112. my AUTOEXEC.BAT file has an IF EXIST test statement in it.  If the test is
  113. true, and EVENT.FLG exists, it branches to that label and will CALL another
  114. batch file resting in wait on the C:\ drive called NITEVENT.BAT.  This batch
  115. file contains all the necessary tasks that has to be done during my event
  116. period.  Updating game door stuff, PCBSM stuff, updating the file lists, my
  117. mail runs, defrag the HD, etc.
  118.  
  119. When NITEVENT.BAT first executes, it also does a test IF EXIST statement for
  120. the existance of that EVENT.FLG.  If it finds it, the very first thing it 
  121. does is deletes that file so that when the last thing that NITEVENT.BAT does
  122. is REBOOTS the machine again, the test IF EXIST statement in my AUTOEXEC.BAT
  123. file does not find it, and will not branch off to that EVENT label in the
  124. batch file, and will restart as normal, finally calling the DV.BAT file to
  125. restart the 4 nodes again.
  126.  
  127. Now, once everything has run okay, the 4 nodes are back up, and waiting once
  128. again for callers.  Taking these steps has dropped my nightly events back to
  129. a respectful 30 mins or so.  I have been using this procedure for about 3
  130. months now without a hitch (touch wood!).
  131.  
  132. It works for me, so if you are having difficulties with your events, there is
  133. no reason why it wouldnt work for you that I can think of.  
  134.  
  135. If you are running other than PCBoard, it should work for you as well.  Give
  136. the above procedures a try, and let me know how it works.  Drop me a line
  137. in your nearest RIME/RelayNet(tm) SysOps conference to Harv Welch.  Route 
  138. the message to CBYTES if you wish, or leave it public for all to read. That
  139. way if someone else is having difficulties, maybe they might read that msg
  140. and try out this procedure themselves.  If I have helped you out with this,
  141. and your events are now running cleaner, it just makes me feel glad to have
  142. helped someone else out.  If not, well then I suppose that you will have to
  143. work at it a little harder.  Don't get discouraged though.  As with myself,
  144. it will come to you and everything will work out fine.  Just let others
  145. know who may have had similar problems how to get around it.
  146.  
  147.  
  148.  
  149. SUMMARY OF THE ABOVE PROCEDURES....
  150. ===============================
  151.  
  152.  
  153. 1... At your usual event time, have each of your nodes above Node 1 execute the
  154.      following batch file.  Remember to have them take off prior to Node 1.
  155.  
  156.      EVNET.SYS (for nodes above Node 1)
  157.  
  158.      @echo off
  159.      EXIT
  160.  
  161. 2... After the nodes above Node 1 have come down, have Node 1 come down a few
  162.      minutes later, and run the following EVENT.SYS for Node 1.
  163.  
  164.      EVENT.SYS (for Node 1)
  165.  
  166.      @echo off
  167.      cls
  168.      cd c:\
  169.      echo Time for event > c:\event.flg
  170.      reboot
  171.  
  172. 3... During reboot, your AUTOEXEC.BAT file should look something like this:
  173.  
  174.      @echo off
  175.     
  176.      YOUR USUAL AUTOEXEC STUFF HERE.....
  177.   
  178.      ADD THE FOLLOWING (or similar) TO THE END OF YOUR AUTOEXEC.BAT FILE....
  179.  
  180.      c:
  181.      cd c:\
  182.      if exist c:\event.flg goto Event
  183.      goto End
  184.      :Event
  185.      call nitevent
  186.      :End
  187.      pauz ANY 10    <-------This will ask you if you want to carry on
  188.      if errorlevel 1 goto Final
  189.      if errorlevel 0 goto DV
  190.      goto Final
  191.     :DV
  192.      c:\dv
  193.      :Final
  194.  
  195. 4... During REBOOT, and if EVENT.FLG is found, it will in turn run the
  196.      following NITEVENT.BAT file:
  197.  
  198.      @echo off
  199.      if exist c:\event.flg del c:\event.flg
  200.      cd c:\pcb
  201.  
  202.      ALL OF YOUR USUAL NIGHTLY EVENT TASKS GO HERE.....
  203.  
  204.      reboot
  205.  
  206.  
  207. 5... After your event has ended, it will reboot, and once again run
  208.      your AUTOEXEC.BAT file as follows:
  209.  
  210.      @echo off
  211.     
  212.      YOUR USUAL AUTOEXEC STUFF HERE.....
  213.   
  214.      ADD THE FOLLOWING (or similar) TO THE END OF YOUR AUTOEXEC.BAT FILE....
  215.  
  216.      :End
  217.      pauz ANY 10    <-------This will ask you if you want to carry on
  218.      if errorlevel 1 goto Final
  219.      if errorlevel 0 goto DV
  220.      goto Final
  221.     :DV
  222.      c:\dv
  223.      :Final
  224.  
  225.  
  226. 6... Now, because your event has ended, and AUTOEXEC.BAT doesnt find the
  227.      EVENT.FLG file, it will goto End and then call the following file
  228.      to start up DV:
  229.  
  230.      @echo off
  231.      C:
  232.      cd c:\dv
  233.      break off
  234.      dv %1 %2 %3 %4 %5
  235.      cd c:\
  236.  
  237. 7... Now, your multinode PCBoard system running under DESQView will start
  238.      up again, and will be ready for your callers.  Events have ended for
  239.      tonight.
  240.  
  241.  
  242. Once again, I hope that his helps.  Give it a try and let me know how it
  243. worked out for you.
  244.  
  245. Harv....
  246.  
  247.  
  248. Final Note: 
  249. ===========
  250.  
  251.         Since my first writing of this file, I have altered my autoexec.bat
  252. file to include a pause that waits for a request from you if you want to
  253. bypass the start up of DESQview.  Just use the file called PAUZ that is 
  254. included with this zip file, and also, REBOOT.COM has been included.  I have
  255. also included copies of my AUTOEXEC.BAT, NITEVENT.BAT and my EVENT.SYS files.
  256.  
  257.  
  258. Files included within this package:
  259. ===================================
  260.  
  261. DVEVENT.TXT  - This documentation file
  262. REBOOT.ZIP   - Contains the small REBOOT.COM file to reboot your system.
  263. PAUZ15.ZIP   - Contains the file that will pause before starting DV
  264. 4DV&PCB.ZIP  - Contains info on setting up a 4 node DV system.
  265. AUTOEXEC.BAT - Copy of my AUTOEXEC.BAT file
  266. NITEVENT.BAT - Copy of my NITEVENT.BAT file
  267. EVENT1.SYS   - Copy of my EVENT.SYS file for Node1
  268. EVENT2.SYS   - Copy of my EVENT.SYS file for the other 3 nodes
  269.  
  270.